import { SrvRecord } from "dns"

export class UserSummary{
    userId:number;
    id: number;
    title: String
    body:String
    price:number
    currency:string
    imgs:string[]
    constructor(user:any){
        this.userId=user.userId
        this.id=user.id;
        this.title=user.title;
        this.body=user.body;
        this.imgs= user.imgs.map((item:String)=> "/static/image/"+item)
    }
}